package com.source.thread.threadd;

import java.util.Date;

public class Apple {

    private  Integer id;
    private String name;
    private Date  date;

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    private String name2;

    public Integer getId() {
        return id;
    }
    Apple(){ super();}
    @Override
    public String toString() {
        return "Apple{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                '}';
    }

    public Apple(Integer id, String name, Date date) {
        this.id = id;
        this.name = name;
        this.date = date;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
